#pragma once
#include "rbtree.h"

namespace lth
{
	template<class k>
	class set
	{
		struct set_of_t
		{
			const k& operator()(const k& key)
			{
				return key;
			}
		};
	public:
		typedef typename rbtree<k, k, set_of_t>::const_itertaor iterator;
		typedef typename rbtree<k, k, set_of_t>::const_itertaor const_iterator;

		iterator begin()
		{
			return _t.begin();
		}

		iterator end()
		{
			return _t.end();
		}

		pair<iterator,bool> insert(const k& key)
		{
			return _t.insert(key);
		}
	private:
		rbtree<k, k, set_of_t> _t;
	};
}